package com.zhouyu.service;

import org.springframework.beans.factory.annotation.Lookup;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
public abstract class LookUpBean {

	private LookUpInnerBean lookUpInnerBean;

	public void test() {
		LookUpInnerBean lookUpInnerBean = createLookUpInnerBean();
		System.out.println(lookUpInnerBean);
	}

	@Lookup("lookUpInnerBean")
	public LookUpInnerBean createLookUpInnerBean() {
		return null;
	}
}
